package cn.rui.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 徽州大都督
 * @date 2021/6/17
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "群公告类", value = "群公告类")
@TableName("sys_group_notice")
public class GroupNotice implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String content;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private Integer userId;

    @TableField(exist = false)
    private User user;
}
